﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;

namespace PlayGround.WPF
{
    /// <summary>
    /// Interaction logic for SeverityList.xaml
    /// </summary>
    public partial class SeverityList 
    {

        public List<Severity> severities;
        public SeverityList()
        {
            this.Loaded += new RoutedEventHandler(SeverityList_Loaded);
           InitializeComponent();
         
            
          
        }
        void SeverityList_Loaded(object sender, RoutedEventArgs e)
        {
            severities    = new List<Severity>();
            severities.Add(new Severity("High", true, new SolidColorBrush(Colors.Red)));
            severities.Add(new Severity("Mid", true, new SolidColorBrush(Colors.Orange)));
           severities.Add(new Severity("Low", true, new SolidColorBrush(Colors.Green)));
            sevbx.ItemsSource = severities;
        }
       
    }
}
